<template>
	<view class="btnWrapper">
		<view class="btn" @click="onBtnClick">
			{{text}}
		</view>
	</view>
	
</template>

<script>
	export default{
		props: {
			text: String,
			marginTop: {
				type: Number,
				default: 0
			},
			width: {
				type: Number,
				default: 480
			}
		},
		methods: {
			onBtnClick() {
				this.$emit('onBtnClick')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.btnWrapper{
		position: fixed;
		left: 0;
		bottom: 0;
		height: 100rpx;
		width: 750rpx;
		padding-bottom: env(safe-area-inset-bottom);
		border-top: 1px solid #eee;
		background-color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		.btn{
			width: 500rpx;
			height: 68rpx;
			background: #3791E9;
			border-radius: 8rpx;
			text-align: center;
			line-height: 68rpx;
			margin: 0 auto;
			color: #fff;
		}
	}

</style>
